<html>
<head>
<!-- <meta charset=gbk /> -->
<meta charset="utf-8">
<title>selectList</title>
<style type="text/css">
        html, body {
            height: 100%;
            overflow: auto;
        }

        body {
            padding: 0;
            margin: 0;
        }

        #silverlightControlHost {
            height: 100%;
            text-align: center;
        }
    </style>
<!-- <script type="text/javascript" src="jquery1.7.1.js"></script> -->
<!--<script type="text/javascript" src="{{ url_for('static', filename='jquery-3.1.0.min.js') }}"></script>-->
</head>
<script type="text/javascript" src="../static/jquery-3.1.0.min.js"></script>
<body>
<div>
    <h1>
        {% if error %}
        <h1><font color="#a52a2a"> {{ error }}</font></h1>
    </h1>
        {% endif %}
</div>
<script>
$(function(){
$("#phone").focus()
})
</script>
<script>
    function checkForm(o){
       var re=/^(1[0-9]{10})$/;
       if(!re.test(o.phone.value)){
            alert('请输入正确的手机号码。');
            return false;
        }
    }
</script>
<script>
function checkinfo(){
if($(":password").val() == ""){
    alert("请输入执行密码");
    return false;
};
var re=/^(1[0-9]{10})$/;
       if(!re.test(document.getElementById("phone").value)){
            alert('请输入正确的手机号码。');
            return false;
        }
else{
var  result  = confirm("你要解绑的手机号码是: " + document.getElementById("phone").value)
   if(result){
        return true;
             }
   else{
        return false;
       }
     }
}
</script>
<div style="width:100%;text-align:center">
<form  class="form"  method="post" id="form" style="height: 100%" onsubmit="return checkinfo()" action="">
<tr align="center">
  <td>要解绑的手机号:<input id="phone" type="text" maxlength="11" name="fname" /></td>
  <br>
  <td>执行密码: <input id="passwd" type="password" name="passwd" /></td>
  <br>
    <br>
  <input type="submit" value="解绑" />
</tr>
</form>
</div>
</body>
</html>